/**
 * Created by Liujx on 2017-10-13 09:41:21
 */
var user_nick = wx.getStorageSync('user_nickname');
var user_head = wx.getStorageSync('user_head');
const userUrl = require('../../config').userUrl;
Page({
  data: {
    user_nick: user_nick,
    user_head: user_head,
  },
  onLoad: function (options) {
    var that = this;
    wx.request({
      url: userUrl,
      method: 'GET',
      data: {
        user_nick: user_nick
      },
      header: {
        'content-type': 'application/x-www-form-urlencoded' // 默认值
      },
      success: function (res) {
        //console.log(user_nick)
        console.log(res)        
        that.setData({          
           score:res.data.data
        })
      }
    })    
  },
})